/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2022-12-01
 * Time: 20:02
 */
public class Test2 {
    public static void main(String[] args) {
        SingleLinkedList a = new SingleLinkedList();
        a.createList();
        System.out.println(a.head.val);
        a.addFirst(1);
        System.out.println(a.head.val);
        a.display();
        System.out.println(a.size());
        a.addLast(1);
        a.display();
        System.out.println(a.size());
        a.addIndex(3,1);
        a.addIndex(3,1);
        a.display();
        System.out.println(a.size());
        System.out.println(a.contains(11));
        a.remove(1);
        a.display();
        a.remove(1);
        a.display();
        a.removeAllKey(1);
        a.display();
    }
}
